.add-friend
  .busqueda{:style => 'padding:7px 40px'}
    = text_field_tag :login, :login, :style => "width:120px;color:#666;font-weight:bold", :value => "> Buscar amigo", :onclick => "value = ''", :onfocus => "value = ''"
    = image_tag("/images/spin.gif", :id => "spinner", :alt => "spinner", :style=>"display:none;")
#resultados_busqueda
 
= observe_field("login", :frequency => 1, :update =>:resultados_busqueda, :loading => "Element.show('spinner')", :complete => "Element.hide('spinner')", :url =>live_search_usuario_amigos_path(current_usuario) , :with => "busqueda")